<?php 

$html =
   '<html> 
<head> 
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" />
	<style type="text/css">
	table{
		font-family: verdana,arial,sans-serif;
		font-size:11px;
		width:90%;
		border-width: 1px;
		border-color: #666666;
		border-collapse: collapse;
	}
	table th {
		border-width: 1px;
		padding: 4px;
		border-style: solid;
		border-color: #666666;
		background-color: #dedede;
	}
	table td {
		border-width: 1px;
		padding: 4px;
		border-style: solid;
		border-color: #666666;
		background-color: #ffffff;
	}
	</style>
</head>
<p  ALIGN="right">SISTEMA  DE FUERZA DE VENTAS</p>
<body>'.$content_for_layout.'</body>
</html>';

require_once(APP . 'Vendor' . DS . 'dompdf' . DS . 'dompdf_config.inc.php');
spl_autoload_register('DOMPDF_autoload');
$dompdf = new DOMPDF();
$dompdf->set_paper = 'A4';
$dompdf->load_html($html);
$dompdf->render();
echo $dompdf->output();
?>